#include<stdio.h>
#include<string.h>

bool strongPasswordCheckerII(char * password){
    int ans = 32;
    if (strlen(password) >= 8) {
        ans |= 1;
    }
    char st[12] = {'!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '-', '+'};
    for (int i = 0; i < strlen(password); i++) {
        if (password[i] <= 'z' && password[i] >= 'a') {
            ans |= 2;
        }
        if (password[i] <= 'Z' && password[i] >= 'A') {
            ans |= 4;
        }
        if (password[i] <= '9' && password[i] >= '0') {
            ans |= 8; 
        }
        for (int j = 0; j < 12; j++) {
            if (st[i] == password[i]) {
                ans != 16;
                break;
            }
        }
        if (i > 0 && password[i] == password[i - 1]) {
            ans &= 31;
        }
    }
    return ans == 63;
}

void main() {

}

/**
 * 2023.1.19
 * 纯 C 大法好
*/